package fi.aalto.cse.T110_5150.P2PClient;

public class IntegerArray extends NumberArray<Integer> {

	private static final long serialVersionUID = 3687837955317225441L;
	
	public IntegerArray() {
	}
	
	public IntegerArray(int[] buf) {
		for (int i = 0; i < buf.length; ++i) {
			add(buf[i]);
		}
	}	

	@Override
	protected String numberFormat() {
		return "%x04x";
	}

	@Override
	protected Integer decodeSingleNumber(String s) {
		return Integer.decode(s);
	}

}
